//生成器查询请求
import request from "@/request/request";

export const getGenerator = ({current, pageSize,  sortField, sortOrder}: any) => {
  // @ts-ignore
  return request.post('/generator/list/page/vo/fast',
    {
      current,
      pageSize,
      sortField,
      sortOrder
    })
}

//生成器详情接口
export const generatorDetail = (id: any) => {
  return request.get('/generator/get/vo', {
    params: { id } })
}

//下载生成器接口
export const downloadGenerator = ({id, dataModel}: any) => {
  return request.post('/generator/download',
    {
      dataModel,
      id
    })
}
